cmake_minimum_required(VERSION 3.10) 

#设置项目
project (JY_UOS VERSION 1.0)

# 设置C++标准
set(CMAKE_CXX_STANDARD 11) 
set(CMAKE_CXX_STANDARD_REQUIRED True) 

#增加平台宏定义
#add_definitions(-D__RTTHREAD__)



#是否需要差异化编译
#include(build.cmake)  

#设置编译类型
set(CMAKE_BUILD_TYPE Debug) 

#设置输出路径
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/out) 
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/out) 

#添加子模块
add_subdirectory(src)







